/*
 * Created: 2022-09-12 19:52:50
 * Author : 涛涛涛
 */

import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {}
NoRecord.defaultProps = {} as Partial<IProps>;
function NoRecord(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('NoRecord', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="iconfont-wrap">
                <View className="iconfont">&#xe60e;</View>
            </View>
            <View className="text">暂&nbsp;无&nbsp;数&nbsp;据</View>
        </RootView>
    );
}
export default React.memo(NoRecord as FC<IProps>);
const RootView = styled(View)`
    &.NoRecord {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        > .iconfont-wrap {
            > .iconfont {
                font-size: 160px;
                color: #999;
                line-height: 1;
            }
        }
        > .text {
            line-height: 1;
            color: #999;
            font-size: 32px;
        }
    }
`;
